package lab01;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/12/19.
 */
public class Test06_1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入1，2,3,4,5其中一个数：");
        int score = scanner.nextInt();
        int i = score;
        int j = score;
        if (i == 1) {

            System.out.println("不及格");
        } else if (i == 2) {
            System.out.println("及格");
        } else if (i == 3) {
            System.out.println("中等");
        } else if (i == 4) {
            System.out.println("良好");
        } else if (i == 5) {
            System.out.println("优秀");
        }
        switch (j) {
            case 1:
                System.out.println("switch语句1成绩为不及格");
                break;
            case 2:
                System.out.println("switch语句2成绩为及格");
                break;
            case 3:
                System.out.println("switch语句3成绩为中等");
                break;
            case 4:
                System.out.println("switch语句4成绩为良好");
                break;
            case 5:
                System.out.println("switch语句5成绩为优秀");
                break;
        }
    }


}
